fix format-overflow= warning with g++-8 in mkshort.cc (#361)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Thu, 23 May 2019 12:57:43 +0000 (06:57 -0600)
committerGitHub <noreply@github.com>
Thu, 23 May 2019 12:57:43 +0000 (06:57 -0600)
This is Fedora patch 0006-Fix-Wformat-overflow.patch.

mkshort.cc

index c0179e920db798db44f86889fa1402014c231016..737f02b561583e131988dfed33111716e8d9ee27 100644 (file)
@@ -140,7 +140,7 @@ mkshort_add_to_list(mkshort_handle_imp* h, char* name)
   uniq_shortname* s;
 
   while ((s = is_unique(h, name))) {
-    char tbuf[10];
+    char tbuf[13];
     size_t l = strlen(name);
 
     s->conflictctr++;